@import '../variables.css';

.pane {
  background: var(--bg);
  border-right: 1px solid var(--color-border);
  height: 100%;
  max-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100%;

  /* transition: all .25s ease-in-out; */
  overflow: hidden;
  position: absolute;
  will-change: transform;
}

[dir="ltr"] .pane:last-child {
  border-right: none;
}

[dir="rtl"] .pane:first-child {
  border-right: none;
}

[dir="rtl"] .pane:last-child {
  border-left: none;
}

/**
 * Pane Content
 */

.paneContent {
  height: 100%;
  width: 100%;
  overflow: auto;
  outline: 0;

  &.hasPadding {
    padding: var(--gutter-static);
  }

  &.noOverflow {
    overflow: hidden;
  }
}

.container {
  max-width: var(--container-max-width);
  margin: auto;
}

@media (--medium-up) {
  .pane {
    position: relative;
  }
}
